* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #0f0f0f;
}

.container {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container .card {
    position: absolute;
    width: 240px;
    height: 320px;
    background-color: #5e5cfc;
    color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8em;
    font-weight: 700;
    border: 10px solid rgba(0, 0, 0, .1);
    border-radius: 8px;
    cursor: pointer;
    transition: .3s;
    transform-origin: 50% 100%;
    filter: hue-rotate(calc(var(--i) * 50deg));
    box-shadow: 0 15px 50px rgba(0, 0, 0, .1);
    user-select: none;
}

.container:hover .card {
    transform: rotate(calc(var(--i) *5deg)) translate(calc(var(--i) * 120px), -50px);
    color: rgba(0, 0, 0, .25);
    box-shadow: 0 15px 50px rgba(0, 0, 0, .25);
}

.container:hover .card {
    /* background-color: #333; */
}

.container .card:hover {
    translate: calc(var(--i) * 20px) -50px;
    /* z-index: 100; */
    background-color: #5e5cfc;
}